//
//  NSDictionary+SMC.h
//  SMCKit
//
//  Created by Ren JianSheng on 11-11-8.
//  Copyright (c) 2011年 3gtv.net. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDictionary (QL)

+(NSDictionary*)initFromJSONObject:(NSString *)json;

- (NSString *)ql_stringForKey:(id)key;
- (int)ql_intForKey:(id)key;
- (CGFloat)ql_floatForKey:(id)key;
- (BOOL)ql_boolForKey:(id)key;
- (long)ql_longForKey:(id)key;
-(NSDate*)ql_dateForKey:(id)key;

- (BOOL)ql_hasObjectForKey:(id)key;

- (BOOL)ql_validate;
- (BOOL)ql_validateArrayForKey:(id)key;
- (BOOL)ql_validateDictionaryForKey:(id)key;

@end

